#include "hal_cs_f71_reg.h"
#include <string.h>

void hal_static_reg_init(void)
{
	uint32_t CPUID	= system_cpuid_read();
	uint32_t PDID	= system_chip_uniquei_id_read();
	uint32_t RSTSRC = 0;
	u8 i;

	for (i = 0; i < 7; i++)
	{
		if (system_reset_status_read((rcc_rst_status_t)i))  //RCC_FLAG_RSTS_SYS 0
		{
			RSTSRC |= 1 << i;
		}

		system_reset_status_clear((rcc_rst_status_t)i);
	}

//	memcpy(&(st_reg_mcu_id.data[0]), (void const *)(&CPUID), 4);
//	memcpy(&(st_reg_mcu_id.data[4]), (void const *)(&PDID), 4);
//	memcpy(&(st_reg_rst_src.data[0]), (void const *)(&RSTSRC), 4);
	
}

void SystemInit(void)
{
    
}

